import os, sys
os.putenv('PYTHON', sys.executable)
basedir = os.path.abspath(os.path.dirname(__file__))
if len(sys.argv) == 1: name = 'docutils'
else: name = sys.argv[1]
script = os.path.join(basedir, name + '.sh')
if not os.path.exists(script):
    print 'Unknown project: %s' % (name,)
    sys.exit()
status = os.system(script)
if status != 0: sys.exit(1)
